﻿<%@ Page Language="C#" MasterPageFile="~/webUI/user/userTemplate.master" AutoEventWireup="true"
    CodeFile="ingredient_ticket.aspx.cs" Inherits="ingredient_ticket" Title=".::E-Valuation System::.." %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="THIO_Wizard" style="">
        <asp:Panel ID="Panel6" runat="server">
            <label>
                Trước khi nhập điểm bạn phải chọn một số mục</label>
            <div class="FeildContainer">
                <label>
                    Chọn hội đồng</label>
                <asp:DropDownList CssClass="Select" runat="server" DataSourceID="hoidongData" ID="cb_hoidong"
                    DataTextField="TenHoidong" DataValueField="MaHoidong" AutoPostBack="true" OnSelectedIndexChanged="changeCucil">
                </asp:DropDownList>
                <asp:SqlDataSource runat="server" ID="hoidongData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                    SelectCommand="SELECT [MaHoidong], [TenHoidong] FROM [hoidong] where madoanhnghiep=@madoanhnghiep union select 0, N'----Chọn một----'">
                    <SelectParameters>
                        <asp:SessionParameter SessionField="companyId" Name="madoanhnghiep" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
            <div class="FeildContainer">
                <label>
                    Chọn thành viên</label>
                <asp:DropDownList CssClass="Select" runat="server" ID="cb_thanhvien" DataSourceID="thanhvienData"
                    DataTextField="tenthanhvien" DataValueField="mathanhvien" AutoPostBack="true"
                    OnSelectedIndexChanged="changeMember">
                </asp:DropDownList>
                <asp:SqlDataSource runat="server" ID="thanhvienData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                    SelectCommand="Select ThanhVien.MaThanhVien,TenThanhVien From ThanhVien inner join HoiDongChamDiem  on ThanhVien.MaThanhVien=HoiDongChamDiem.MathanhVien where ThanhVien.Status=1 and MahoiDong=@mahoidong and HoiDongChamDiem.Status=1 ">
                    <SelectParameters>
                        <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                        <asp:SessionParameter Name="madoanhnghiep" SessionField="companyId" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
            <div class="FeildContainer">
                <label>
                    Chọn sản phẩm</label>
                <asp:DropDownList CssClass="Select" runat="server" ID="cb_sanpham" DataSourceID="sanphamData"
                    DataTextField="TenSanPham" DataValueField="MaSanPham" AutoPostBack="true" OnSelectedIndexChanged="changeProduct">
                </asp:DropDownList>
                <asp:SqlDataSource runat="server" ID="sanphamData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                    SelectCommand="SELECT [MaSanPham], [TenSanPham] FROM [SanPham] where mahoidong=@mahoidong and madoanhnghiep=@madoanhnghiep and status =1">
                    <SelectParameters>
                        <asp:ControlParameter Name="mahoidong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                        <asp:SessionParameter Name="madoanhnghiep" SessionField="companyId" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="PanelNhapdiem" runat="server">
            <div class="UIDivInfo">
                <div class="UITabPane" style="margin-top: 15px;">
                    <div class="TabPaneContent">
                        <div class="WorkingAreaWithHelp" style="width: 98.5%;">
                            <div class="UIHorizontalTabs">
                                <div class="LeftHorizontalTabs">
                                    <div class="RightHorizontalTabs">
                                        <div class="CenterHorizontalTabs">
                                            <div class="TabsContainer">
                                                <asp:PlaceHolder ID="TabsContainer" runat="server">
                                                    <div class="UITab NormalTabStyle">
                                                        <% String className = "NormalTab";
                                                           if (getSelectedTab().Equals("0"))
                                                           {
                                                               className = "SelectedTab";
                                                           }
                                                        %>
                                                        <div id="UITab0" class="<%=className %>">
                                                            <div class="LeftTab">
                                                                <div class="RightTab">
                                                                    <div class="MiddleTab">
                                                                        <asp:LinkButton CssClass="NormalLink" ID="TabValue0" runat="server" CausesValidation="false"
                                                                            OnClick="ChangeTabIndex" ToolTip="Phiếu điểm thành phần công nghệ theo trình độ hiện đại ">
                                                                       CN Theo trình độ 
                                                                        </asp:LinkButton>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="UITab NormalTabStyle">
                                                        <%
                                                            className = "NormalTab";
                                                            if (getSelectedTab().Equals("1"))
                                                            {
                                                                className = "SelectedTab";
                                                            }
                                                        %>
                                                        <div id="UITab1" class="<%=className %>">
                                                            <div class="LeftTab">
                                                                <div class="RightTab">
                                                                    <div class="MiddleTab">
                                                                        <asp:LinkButton CssClass="NormalLink" ID="TabValue1" runat="server" CausesValidation="false"
                                                                            OnClick="ChangeTabIndex" ToolTip="Phiếu điểm thành phần công nghệ theo hiệu quả ">
                                                                CN Theo hiệu quả 
                                                                        </asp:LinkButton>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="UITab NormalTabStyle">
                                                        <%
                                                            className = "NormalTab";
                                                            if (getSelectedTab().Equals("2"))
                                                            {
                                                                className = "SelectedTab";
                                                            }
                                                        %>
                                                        <div id="UITab2" class="<%=className %>">
                                                            <div class="LeftTab">
                                                                <div class="RightTab">
                                                                    <div class="MiddleTab">
                                                                        <asp:LinkButton CssClass="NormalLink" ID="TabValue2" runat="server" CausesValidation="false"
                                                                            OnClick="ChangeTabIndex" ToolTip="Phiếu điểm thành phần công nghệ theo công đoạn ">
                                                                  CN Theo công đoạn 
                                                                   
                                                                        </asp:LinkButton>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="UITab NormalTabStyle">
                                                        <%
                                                            className = "NormalTab";
                                                            if (getSelectedTab().Equals("3"))
                                                            {
                                                                className = "SelectedTab";
                                                            }
                                                        %>
                                                        <div id="UITab3" class="<%=className %>">
                                                            <div class="LeftTab">
                                                                <div class="RightTab">
                                                                    <div class="MiddleTab">
                                                                        <asp:LinkButton CssClass="NormalLink" ID="TabValue3" runat="server" CausesValidation="false"
                                                                            OnClick="ChangeTabIndex" ToolTip="Phiếu điểm thành phần con người theo công đoạn ">
                                                                   
                                                                  Con người theo công đoạn 
                                                                        </asp:LinkButton>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:PlaceHolder>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div style="clear: left;">
                                <span></span>
                            </div>
                            <asp:PlaceHolder ID="UITabContentContainer" runat="server">
                                <div class="UITabContentContainer">
                                    <div class="THIO_Wizard">
                                        <%
                                            String styleDisplay = "none";
                                            if (getSelectedTab().Equals("0"))
                                            {
                                                styleDisplay = "block";
                                            }
                                        %>
                                        <div id="UITabContent0" class="UITabContent" style="display: <%=styleDisplay %>">
                                            <asp:Panel ID="Panel1" runat="server">
                                                <!-- CN Theo trình độ -->
                                                
                                            </asp:Panel>
                                        </div>
                                        <%
                                            styleDisplay = "none";
                                            if (getSelectedTab().Equals("1"))
                                            {
                                                styleDisplay = "block";
                                            }
                                        %>
                                        <div id="UITabContent1" class="UITabContent" style="display: <%=styleDisplay %>">
                                            <asp:Panel runat="server" ID="CapPhepPanle">
                                                <!--  CN Theo hiệu quả  -->
                                                
                                            </asp:Panel>
                                        </div>
                                        <%
                                            styleDisplay = "none";
                                            if (getSelectedTab().Equals("2"))
                                            {
                                                styleDisplay = "block";
                                            }
                                        %>
                                        <div id="UITabContent2" class="UITabContent" style="display: <%=styleDisplay %>;">
                                            <asp:Panel ID="Panel7" runat="server">
                                                <!-- CN Theo công đoạn -->
                                                 
                                            </asp:Panel>
                                        </div>
                                        <%
                                            styleDisplay = "none";
                                            if (getSelectedTab().Equals("3"))
                                            {
                                                styleDisplay = "block";
                                            }
                                        %>
                                        <div id="UITabContent3" class="UITabContent" style="display: <%=styleDisplay %>;">
                                            <asp:Panel ID="Panel2" runat="server">
                                                <!--  Con người theo công đoạn -->
                                                <asp:DropDownList DataTextField="tenbuocgiacong" OnSelectedIndexChanged="change_buocgiacong" AutoPostBack="true" DataValueField="mabuocgiacong" ID="cb_buocGiacong" DataSourceID="buocGiacong" runat="server">
                                                </asp:DropDownList>
                                                <asp:Repeater ID="rp_buocGiacong" runat="server">
                                                    <ItemTemplate>
                                                    <table>
                                                     <tr>
                                                     <td>
                                                      <div>
                                                            <asp:HiddenField ID="HiddenField1" runat="server" Value="maNhanToConNguoi" />
                                                            <label>
                                                                <%#Eval("TenNhanToConNguoi")%>
                                                            </label>
                                                            
                                                        </div>
                                                     </td>
                                                     <td>
                                                     
                                                     <asp:TextBox runat="server" CssClass="Max" Text=  '<%#Eval("Max") %>' ></asp:TextBox>
                                                     <asp:TextBox ID="TextBox1" CssClass="Min" runat="server" Text=  '<%#Eval("Min") %>' ></asp:TextBox>
                                                     </td>
                                                      <td>
                                                      <div title="Gợi ý cho điểm" style=" width:250px; height:200px; overflow:scroll;" >
                                                         <ul>
                                    <li><i>Trình độ văn hóa</i></li>
                                    <li>&nbsp;&nbsp;Cấp 2: 1,2,3</li>
                                    <li>&nbsp;&nbsp;Cấp 3: 3,4,5</li>
                                    <li><i>Trình độ chuyên môn</i></li>
                                    <li>&nbsp;&nbsp;Đào tạo hoàn chỉnh ngoại ngữ, vi tính, chuyên môn quản lý: 7,8,9</li>
                                    <li>&nbsp;&nbsp;Thành thạo: 6,7,8</li>
                                    <li>&nbsp;&nbsp;Bình thường: 4,5,6</li>
                                    <li>&nbsp;&nbsp;Kém: 2,3,4</li>
                                </ul>
                                                        </div>
                                                      </td>
                                                     </tr>
                                                    
                                                     </table>   
                                                       
                                                        
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                                <div>
                                                </div>
                                                 
                                               
                                                
                                                <asp:SqlDataSource runat="server" ID="buocGiacong" ConnectionString="<%$ConnectionStrings:evaConn %>"
                                                    SelectCommand="SELECT MaBuocGiaCong, TenBuocGiaCong FROM BuocGiaCong WHERE MaSanPham=@MaSanPham  AND MaHoiDong=@MaHoiDong  union select 0, N'-- Chọn một --' ">
                                                    <SelectParameters>
                                                        <asp:ControlParameter Name="MaSanPham" ControlID="cb_sanpham" PropertyName="SelectedValue" />
                                                        <asp:ControlParameter Name="MaHoiDong" ControlID="cb_hoidong" PropertyName="SelectedValue" />
                                                    </SelectParameters>
                                                </asp:SqlDataSource>
                                            </asp:Panel>
                                        </div>
                                    </div>
                                </div>
                            </asp:PlaceHolder>
                        </div>
                    </div>
                </div>
            </div>
            <div class="ActionButtons">
                <%if (getSelectedTab() != "0")
                  { %>
                <asp:Button runat="server" ID="btn_back" Text="Quay lại" OnClick="backStep" />
                <%} %>
                <%if (getSelectedTab() != "3")
                  { %>
                <asp:Button runat="server" ID="btn_next" Text="Tiếp" OnClick="nextStep" />
                <%} %>
                <asp:Button runat="server" ID="btn_reset" Text="Nạp lại" OnClick="resetValue" />
                <asp:Button runat="server" ID="btn_finish" Text="Kết thúc" OnClick="saveWizard" />
                <asp:Button runat="server" ID="btn_cancel" Text="Bỏ qua" OnClick="cancelWizard" />
            </div>
        </asp:Panel>
    </div>
</asp:Content>
